home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
p4
/
p4-1_2c.lha
/
p4-1.2c
/
misc
/
temp2.f
< prev
next >
Wrap
Text File
|
1993-05-24
|
905b
|
50 lines
program systest
include 'p4f.h'
call p4init()
call p4crpg()
call fslave()
call p4cleanup()
print *,'exiting pgm'
end
subroutine fslave()
include 'p4f.h'
character*40 buffer
integer*4 ASIZE
parameter (ASIZE = 10)
integer*4 a(ASIZE)
integer*4 i, procid, itype, iasize, iintsize, ip4int, rc
procid = p4myid()
print 200,'slave ',procid,' has started'
200 format(a,i2,a)
call p4flush
do 10 i = 1,ASIZE
a(i) = i
10 continue
itype = 44
iasize = ASIZE
iintsize = 4
ip4int = P4INT
call p4globop(itype,a,iasize,iintsize,p4intsumop,ip4int,rc)
do 20 i = 1,ASIZE
print 300,a(i)
call p4flush
20 continue
300 format(i4)
print 500,'slave ',procid,' is exiting'
500 format(a,i2,a)
call p4flush
end